[Sweep GHA Fix] Fix the failing GitHub Actions #83
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Feedback (click)
I created this PR to fix the failing GitHub Actions.## Description
This PR fixes the failing GitHub Actions run by addressing the issues identified in the upgrade guide for openraft version 0.7 to 0.8. The upgrade process instructions have been updated to provide clear and concise steps for updating the application code, modifying data types, and ensuring compatibility with the new version. Additionally, the instructions for using the
Adaptor
to installRaftStorage
toRaft
have been clarified. The modifications made in this PR aim to resolve the failing GitHub Actions run and ensure a successful upgrade to openraft version 0.8.Summary of Changes
v0.8
openraft.RaftStorage
implementation and run the compatibility test.MyTypeConfig
struct implementation.v0.7
tov0.8
.declare_raft_types
macro to declare the application types.declare_raft_types
macro with theMyTypeConfig
struct.LogId
,Membership
, andEntry
.RaftStorage
methods implementation according to the storage API changes.HardState
withVote
andEffectiveMembership
withStoredMembership
.RaftNetwork
methods implementation according to the network API changes.RaftNetwork
andRaftNetworkFactory
.Adaptor
to installRaftStorage
toRaft
.Adaptor
to createRaftLogStorage
andRaftStateMachine
.v0.7
format data.compat-07
feature flag and implementing a compatible storage layer.v0.7
andv0.8
RaftStorage
implementations and running the compatibility tests.